
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>Actions · Gitbook demo</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.2">
        <meta name="author" content="lanyue">
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="modules.html" />
    
    
    <link rel="prev" href="mutations.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" >
            
                <a target="_blank" href="https://github.com/vuejs/vuex/tree/1.0/docs">
            
                    
                    寻找 1.0 文档？
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" >
            
                <a target="_blank" href="https://github.com/vuejs/vuex/releases">
            
                    
                    更新记录
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="installation.html">
            
                <a href="installation.html">
            
                    
                    安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="intro.html">
            
                <a href="intro.html">
            
                    
                    Vuex 是什么？
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="getting-started.html">
            
                <a href="getting-started.html">
            
                    
                    开始
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7" >
            
                <span>
            
                    
                    核心概念
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="state.html">
            
                <a href="state.html">
            
                    
                    State
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="getters.html">
            
                <a href="getters.html">
            
                    
                    Getters
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="mutations.html">
            
                <a href="mutations.html">
            
                    
                    Mutations
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.7.4" data-path="actions.html">
            
                <a href="actions.html">
            
                    
                    Actions
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.5" data-path="modules.html">
            
                <a href="modules.html">
            
                    
                    Modules
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="structure.html">
            
                <a href="structure.html">
            
                    
                    项目结构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="plugins.html">
            
                <a href="plugins.html">
            
                    
                    插件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="strict.html">
            
                <a href="strict.html">
            
                    
                    严格模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="forms.html">
            
                <a href="forms.html">
            
                    
                    表单处理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="testing.html">
            
                <a href="testing.html">
            
                    
                    测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="hot-reload.html">
            
                <a href="hot-reload.html">
            
                    
                    热重载
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="api.html">
            
                <a href="api.html">
            
                    
                    API 文档
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >Actions</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="actions">Actions</h1>
<p>Action &#x7C7B;&#x4F3C;&#x4E8E; mutation&#xFF0C;&#x4E0D;&#x540C;&#x5728;&#x4E8E;&#xFF1A;</p>
<ul>
<li>Action &#x63D0;&#x4EA4;&#x7684;&#x662F; mutation&#xFF0C;&#x800C;&#x4E0D;&#x662F;&#x76F4;&#x63A5;&#x53D8;&#x66F4;&#x72B6;&#x6001;&#x3002;</li>
<li>Action &#x53EF;&#x4EE5;&#x5305;&#x542B;&#x4EFB;&#x610F;&#x5F02;&#x6B65;&#x64CD;&#x4F5C;&#x3002;</li>
</ul>
<p>&#x8BA9;&#x6211;&#x4EEC;&#x6765;&#x6CE8;&#x518C;&#x4E00;&#x4E2A;&#x7B80;&#x5355;&#x7684; action&#xFF1A;</p>
<pre><code class="lang-js"><span class="hljs-keyword">const</span> store = <span class="hljs-keyword">new</span> Vuex.Store({
  state: {
    count: <span class="hljs-number">0</span>
  },
  mutations: {
    increment (state) {
      state.count++
    }
  },
  actions: {
    increment (context) {
      context.commit(<span class="hljs-string">&apos;increment&apos;</span>)
    }
  }
})
</code></pre>
<p>Action &#x51FD;&#x6570;&#x63A5;&#x53D7;&#x4E00;&#x4E2A;&#x4E0E; store &#x5B9E;&#x4F8B;&#x5177;&#x6709;&#x76F8;&#x540C;&#x65B9;&#x6CD5;&#x548C;&#x5C5E;&#x6027;&#x7684; context &#x5BF9;&#x8C61;&#xFF0C;&#x56E0;&#x6B64;&#x4F60;&#x53EF;&#x4EE5;&#x8C03;&#x7528; <code>context.commit</code> &#x63D0;&#x4EA4;&#x4E00;&#x4E2A; mutation&#xFF0C;&#x6216;&#x8005;&#x901A;&#x8FC7; <code>context.state</code> &#x548C; <code>context.getters</code> &#x6765;&#x83B7;&#x53D6; state &#x548C; getters&#x3002;&#x5F53;&#x6211;&#x4EEC;&#x5728;&#x4E4B;&#x540E;&#x4ECB;&#x7ECD;&#x5230; <a href="modules.html">Modules</a> &#x65F6;&#xFF0C;&#x4F60;&#x5C31;&#x77E5;&#x9053; context &#x5BF9;&#x8C61;&#x4E3A;&#x4EC0;&#x4E48;&#x4E0D;&#x662F; store &#x5B9E;&#x4F8B;&#x672C;&#x8EAB;&#x4E86;&#x3002;</p>
<p>&#x5B9E;&#x8DF5;&#x4E2D;&#xFF0C;&#x6211;&#x4EEC;&#x4F1A;&#x7ECF;&#x5E38;&#x4F1A;&#x7528;&#x5230; ES2015 &#x7684; <a href="https://github.com/lukehoban/es6features#destructuring" target="_blank">&#x53C2;&#x6570;&#x89E3;&#x6784;</a> &#x6765;&#x7B80;&#x5316;&#x4EE3;&#x7801;&#xFF08;&#x7279;&#x522B;&#x662F;&#x6211;&#x4EEC;&#x9700;&#x8981;&#x8C03;&#x7528; <code>commit</code> &#x5F88;&#x591A;&#x6B21;&#x7684;&#x65F6;&#x5019;&#xFF09;&#xFF1A;</p>
<pre><code class="lang-js">actions: {
  increment ({ commit }) {
    commit(<span class="hljs-string">&apos;increment&apos;</span>)
  }
}
</code></pre>
<h3 id="&#x5206;&#x53D1;-action">&#x5206;&#x53D1; Action</h3>
<p>Action &#x901A;&#x8FC7; <code>store.dispatch</code> &#x65B9;&#x6CD5;&#x89E6;&#x53D1;&#xFF1A;</p>
<pre><code class="lang-js">store.dispatch(<span class="hljs-string">&apos;increment&apos;</span>)
</code></pre>
<p>&#x4E4D;&#x4E00;&#x773C;&#x770B;&#x4E0A;&#x53BB;&#x611F;&#x89C9;&#x591A;&#x6B64;&#x4E00;&#x4E3E;&#xFF0C;&#x6211;&#x4EEC;&#x76F4;&#x63A5;&#x5206;&#x53D1; mutation &#x5C82;&#x4E0D;&#x66F4;&#x65B9;&#x4FBF;&#xFF1F;&#x5B9E;&#x9645;&#x4E0A;&#x5E76;&#x975E;&#x5982;&#x6B64;&#xFF0C;&#x8FD8;&#x8BB0;&#x5F97; <strong>mutation &#x5FC5;&#x987B;&#x540C;&#x6B65;&#x6267;&#x884C;</strong>&#x8FD9;&#x4E2A;&#x9650;&#x5236;&#x4E48;&#xFF1F;Action &#x5C31;&#x4E0D;&#x53D7;&#x7EA6;&#x675F;&#xFF01;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x5728; action &#x5185;&#x90E8;&#x6267;&#x884C;<strong>&#x5F02;&#x6B65;</strong>&#x64CD;&#x4F5C;&#xFF1A;</p>
<pre><code class="lang-js">actions: {
  incrementAsync ({ commit }) {
    setTimeout(() =&gt; {
      commit(<span class="hljs-string">&apos;increment&apos;</span>)
    }, <span class="hljs-number">1000</span>)
  }
}
</code></pre>
<p>Actions &#x652F;&#x6301;&#x540C;&#x6837;&#x7684;&#x8F7D;&#x8377;&#x65B9;&#x5F0F;&#x548C;&#x5BF9;&#x8C61;&#x65B9;&#x5F0F;&#x8FDB;&#x884C;&#x5206;&#x53D1;&#xFF1A;</p>
<pre><code class="lang-js"><span class="hljs-comment">// &#x4EE5;&#x8F7D;&#x8377;&#x5F62;&#x5F0F;&#x5206;&#x53D1;</span>
store.dispatch(<span class="hljs-string">&apos;incrementAsync&apos;</span>, {
  amount: <span class="hljs-number">10</span>
})

<span class="hljs-comment">// &#x4EE5;&#x5BF9;&#x8C61;&#x5F62;&#x5F0F;&#x5206;&#x53D1;</span>
store.dispatch({
  type: <span class="hljs-string">&apos;incrementAsync&apos;</span>,
  amount: <span class="hljs-number">10</span>
})
</code></pre>
<p>&#x6765;&#x770B;&#x4E00;&#x4E2A;&#x66F4;&#x52A0;&#x5B9E;&#x9645;&#x7684;&#x8D2D;&#x7269;&#x8F66;&#x793A;&#x4F8B;&#xFF0C;&#x6D89;&#x53CA;&#x5230;<strong>&#x8C03;&#x7528;&#x5F02;&#x6B65; API</strong> &#x548C; <strong>&#x5206;&#x53D1;&#x591A;&#x91CD; mutations</strong>&#xFF1A;</p>
<pre><code class="lang-js">actions: {
  checkout ({ commit, state }, products) {
    <span class="hljs-comment">// &#x628A;&#x5F53;&#x524D;&#x8D2D;&#x7269;&#x8F66;&#x7684;&#x7269;&#x54C1;&#x5907;&#x4EFD;&#x8D77;&#x6765;</span>
    <span class="hljs-keyword">const</span> savedCartItems = [...state.cart.added]
    <span class="hljs-comment">// &#x53D1;&#x51FA;&#x7ED3;&#x8D26;&#x8BF7;&#x6C42;&#xFF0C;&#x7136;&#x540E;&#x4E50;&#x89C2;&#x5730;&#x6E05;&#x7A7A;&#x8D2D;&#x7269;&#x8F66;</span>
    commit(types.CHECKOUT_REQUEST)
    <span class="hljs-comment">// &#x8D2D;&#x7269; API &#x63A5;&#x53D7;&#x4E00;&#x4E2A;&#x6210;&#x529F;&#x56DE;&#x8C03;&#x548C;&#x4E00;&#x4E2A;&#x5931;&#x8D25;&#x56DE;&#x8C03;</span>
    shop.buyProducts(
      products,
      <span class="hljs-comment">// &#x6210;&#x529F;&#x64CD;&#x4F5C;</span>
      () =&gt; commit(types.CHECKOUT_SUCCESS),
      <span class="hljs-comment">// &#x5931;&#x8D25;&#x64CD;&#x4F5C;</span>
      () =&gt; commit(types.CHECKOUT_FAILURE, savedCartItems)
    )
  }
}
</code></pre>
<p>&#x6CE8;&#x610F;&#x6211;&#x4EEC;&#x6B63;&#x5728;&#x8FDB;&#x884C;&#x4E00;&#x7CFB;&#x5217;&#x7684;&#x5F02;&#x6B65;&#x64CD;&#x4F5C;&#xFF0C;&#x5E76;&#x4E14;&#x901A;&#x8FC7;&#x63D0;&#x4EA4; mutation &#x6765;&#x8BB0;&#x5F55; action &#x4EA7;&#x751F;&#x7684;&#x526F;&#x4F5C;&#x7528;&#xFF08;&#x5373;&#x72B6;&#x6001;&#x53D8;&#x66F4;&#xFF09;&#x3002;</p>
<h3 id="&#x5728;&#x7EC4;&#x4EF6;&#x4E2D;&#x5206;&#x53D1;-action">&#x5728;&#x7EC4;&#x4EF6;&#x4E2D;&#x5206;&#x53D1; Action</h3>
<p>&#x4F60;&#x5728;&#x7EC4;&#x4EF6;&#x4E2D;&#x4F7F;&#x7528; <code>this.$store.dispatch(&apos;xxx&apos;)</code> &#x5206;&#x53D1; action&#xFF0C;&#x6216;&#x8005;&#x4F7F;&#x7528; <code>mapActions</code> &#x8F85;&#x52A9;&#x51FD;&#x6570;&#x5C06;&#x7EC4;&#x4EF6;&#x7684; methods &#x6620;&#x5C04;&#x4E3A; <code>store.dispatch</code> &#x8C03;&#x7528;&#xFF08;&#x9700;&#x8981;&#x5148;&#x5728;&#x6839;&#x8282;&#x70B9;&#x6CE8;&#x5165; <code>store</code>&#xFF09;&#xFF1A;</p>
<pre><code class="lang-js"><span class="hljs-keyword">import</span> { mapActions } <span class="hljs-keyword">from</span> <span class="hljs-string">&apos;vuex&apos;</span>

<span class="hljs-keyword">export</span> <span class="hljs-keyword">default</span> {
  <span class="hljs-comment">// ...</span>
  methods: {
    ...mapActions([
      <span class="hljs-string">&apos;increment&apos;</span> <span class="hljs-comment">// &#x6620;&#x5C04; this.increment() &#x4E3A; this.$store.dispatch(&apos;increment&apos;)</span>
    ]),
    ...mapActions({
      add: <span class="hljs-string">&apos;increment&apos;</span> <span class="hljs-comment">// &#x6620;&#x5C04; this.add() &#x4E3A; this.$store.dispatch(&apos;increment&apos;)</span>
    })
  }
}
</code></pre>
<h3 id="&#x7EC4;&#x5408;-actions">&#x7EC4;&#x5408; Actions</h3>
<p>Action &#x901A;&#x5E38;&#x662F;&#x5F02;&#x6B65;&#x7684;&#xFF0C;&#x90A3;&#x4E48;&#x5982;&#x4F55;&#x77E5;&#x9053; action &#x4EC0;&#x4E48;&#x65F6;&#x5019;&#x7ED3;&#x675F;&#x5462;&#xFF1F;&#x66F4;&#x91CD;&#x8981;&#x7684;&#x662F;&#xFF0C;&#x6211;&#x4EEC;&#x5982;&#x4F55;&#x624D;&#x80FD;&#x7EC4;&#x5408;&#x591A;&#x4E2A; action&#xFF0C;&#x4EE5;&#x5904;&#x7406;&#x66F4;&#x52A0;&#x590D;&#x6742;&#x7684;&#x5F02;&#x6B65;&#x6D41;&#x7A0B;&#xFF1F;</p>
<p>&#x9996;&#x5148;&#xFF0C;&#x4F60;&#x9700;&#x8981;&#x660E;&#x767D; <code>store.dispatch</code> &#x53EF;&#x4EE5;&#x5904;&#x7406;&#x88AB;&#x89E6;&#x53D1;&#x7684;action&#x7684;&#x56DE;&#x8C03;&#x51FD;&#x6570;&#x8FD4;&#x56DE;&#x7684;Promise&#xFF0C;&#x5E76;&#x4E14;store.dispatch&#x4ECD;&#x65E7;&#x8FD4;&#x56DE;Promise&#xFF1A;</p>
<pre><code class="lang-js">actions: {
  actionA ({ commit }) {
    <span class="hljs-keyword">return</span> <span class="hljs-keyword">new</span> <span class="hljs-built_in">Promise</span>((resolve, reject) =&gt; {
      setTimeout(() =&gt; {
        commit(<span class="hljs-string">&apos;someMutation&apos;</span>)
        resolve()
      }, <span class="hljs-number">1000</span>)
    })
  }
}
</code></pre>
<p>&#x73B0;&#x5728;&#x4F60;&#x53EF;&#x4EE5;&#xFF1A;</p>
<pre><code class="lang-js">store.dispatch(<span class="hljs-string">&apos;actionA&apos;</span>).then(() =&gt; {
  <span class="hljs-comment">// ...</span>
})
</code></pre>
<p>&#x5728;&#x53E6;&#x5916;&#x4E00;&#x4E2A; action &#x4E2D;&#x4E5F;&#x53EF;&#x4EE5;&#xFF1A;</p>
<pre><code class="lang-js">actions: {
  <span class="hljs-comment">// ...</span>
  actionB ({ dispatch, commit }) {
    <span class="hljs-keyword">return</span> dispatch(<span class="hljs-string">&apos;actionA&apos;</span>).then(() =&gt; {
      commit(<span class="hljs-string">&apos;someOtherMutation&apos;</span>)
    })
  }
}
</code></pre>
<p>&#x6700;&#x540E;&#xFF0C;&#x5982;&#x679C;&#x6211;&#x4EEC;&#x5229;&#x7528; <a href="https://tc39.github.io/ecmascript-asyncawait/" target="_blank">async / await</a> &#x8FD9;&#x4E2A; JavaScript &#x5373;&#x5C06;&#x5230;&#x6765;&#x7684;&#x65B0;&#x7279;&#x6027;&#xFF0C;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x50CF;&#x8FD9;&#x6837;&#x7EC4;&#x5408; action&#xFF1A;</p>
<pre><code class="lang-js"><span class="hljs-comment">// &#x5047;&#x8BBE; getData() &#x548C; getOtherData() &#x8FD4;&#x56DE;&#x7684;&#x662F; Promise</span>

actions: {
  <span class="hljs-keyword">async</span> actionA ({ commit }) {
    commit(<span class="hljs-string">&apos;gotData&apos;</span>, <span class="hljs-keyword">await</span> getData())
  },
  <span class="hljs-keyword">async</span> actionB ({ dispatch, commit }) {
    <span class="hljs-keyword">await</span> dispatch(<span class="hljs-string">&apos;actionA&apos;</span>) <span class="hljs-comment">// &#x7B49;&#x5F85; actionA &#x5B8C;&#x6210;</span>
    commit(<span class="hljs-string">&apos;gotOtherData&apos;</span>, <span class="hljs-keyword">await</span> getOtherData())
  }
}
</code></pre>
<blockquote>
<p>&#x4E00;&#x4E2A; <code>store.dispatch</code> &#x5728;&#x4E0D;&#x540C;&#x6A21;&#x5757;&#x4E2D;&#x53EF;&#x4EE5;&#x89E6;&#x53D1;&#x591A;&#x4E2A; action &#x51FD;&#x6570;&#x3002;&#x5728;&#x8FD9;&#x79CD;&#x60C5;&#x51B5;&#x4E0B;&#xFF0C;&#x53EA;&#x6709;&#x5F53;&#x6240;&#x6709;&#x89E6;&#x53D1;&#x51FD;&#x6570;&#x5B8C;&#x6210;&#x540E;&#xFF0C;&#x8FD4;&#x56DE;&#x7684; Promise &#x624D;&#x4F1A;&#x6267;&#x884C;&#x3002;</p>
</blockquote>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="mutations.html" class="navigation navigation-prev " aria-label="Previous page: Mutations">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="modules.html" class="navigation navigation-next " aria-label="Next page: Modules">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"Actions","level":"1.7.4","depth":2,"next":{"title":"Modules","level":"1.7.5","depth":2,"path":"modules.md","ref":"modules.md","articles":[]},"previous":{"title":"Mutations","level":"1.7.3","depth":2,"path":"mutations.md","ref":"mutations.md","articles":[]},"dir":"ltr"},"config":{"plugins":[],"root":"./","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"lanyue","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Gitbook demo","language":"zh-hans","gitbook":">=3.0.0","description":"this is a test"},"file":{"path":"actions.md","mtime":"2017-02-21T09:41:56.406Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2017-03-06T15:58:45.473Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

